package com.xysl.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户对象 zl_xysl_user
 *
 * @author xysl
 * @date 2024-12-27
 */
@Schema(description = "学幼数联app用户对象")
@Data
public class XyslUser
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "上级id")
    private Long parentId;

    @Schema(description = "人员类型;0-老师;1-推荐人")
    private Long userType;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "昵称（别名）")
    private String nickName;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "员工编号")
    private String userNumber;

    @Schema(description = "所属园区id")
    private Long gardenId;

    @Schema(description = "所属园区名称")
    private String gardenName;

    @Schema(description = "所属集团id")
    private Long groupId;

    @Schema(description = "所属区域id")
    private Long siteId;

    @Schema(description = "手机号（登录账号）")
    private String account;

    @Schema(description = "电话号")
    private String phone;

    @Schema(description = "QQ号")
    private String qq;

    @Schema(description = "微信账号")
    private String weixinCode;

    @Schema(description = "身份证号")
    private String idNum;

    @Schema(description = "获得积分")
    private BigDecimal incomePoints;

    @Schema(description = "收入金额")
    private BigDecimal incomeAmount;

    @Schema(description = "性别；0：女；1：男；")
    private Long gender;

    @Schema(description = "住址")
    private String adress;

    @Schema(description = "0-禁用，1-使用")
    private String status;

    @Schema(description = "0-正常，1-已删除")
    private String isDelete;

    @Schema(description = "生日")
    private String birthday;

    @Schema(description = "入职日期", pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date hiredate;

    @Schema(description = "照片url")
    private String imageUrl;

    @Schema(description = "头像url")
    private String headUrl;

    @Schema(description = "个人二维码图片地址")
    private String qrCodeUrl;

    @Schema(description = "是否是特殊账号(修改密码时是否不需要验证码)0:否,1:是")
    private Long isSpecial;

    @Schema(description = "邀请码")
    private String inviteCode;

    @Schema(description = "创建时间", pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @Schema(description = "更新时间", pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

}
